﻿<div id="header">
	<div class="headerNav">
		<form id="queryForm" onsubmit="return false;">		
		   	<div id="eova-query" class="eova-form2" style="display:none">
		   		<div title="企业主键[ent_id]" >
					<div class="eova-find" id="ent_id" url="widget/find?code=ent_list&field=ent_id&multiple=false&exp=select+ent_id+as+cn+%2cent_name+as+name+from+ent_list+where+1%3d1%3bds%3dhb_bus_config" data-options="">
					</div>
				</div>
		    </div>
		</form>
		<ul class="nav">
			<li style="color: #b9ccda;display:none"><a style="cursor: pointer;" onclick="ChangeEntID();">变更企业</a></li>
			<li style="color: #b9ccda;">欢迎[${user.login_id}]</li>
			<li><a href="#" onclick="updatePwd();">修改密码</a></li>
			<li><a href="toLogin">注销</a></li>
			<li><a href="doExit">退出</a></li>
		</ul>
	</div>
</div>
<script type="text/javascript">
	var ChangeEntID = function(){
		var ent_id = $('input[type="hidden"]').val();
		window.location.href = "index?ent_id_param="+ent_id;
	}
	var updatePwd = function() {
		var dialog = parent.sy.modalDialog({
			title : '修改密码',
			url : 'toUpdatePwd',
			buttons : [ {
				text : '确定',
				handler : function() {
					dialog.find('iframe').get(0).contentWindow.submitForm(
							dialog,parent.$);
				}
			} ]
		},400,180);
	};
	$('div[class="eova-find"]').eovafind();
	$('input[type="text"]').val("${user.ent_name}");
</script>